package com.ynet.middleground.user.bean;

import com.ynet.core.common.BaseReqObj;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @program: 2019-10-12_userCenter
 * @description: 补录邀请码请求
 * @author: DaiGaoLe
 * @create: 2019-11-13 16:53
 **/
@Data
@ApiModel(value = "补录邀请码请求", description = "补录邀请码请求")
public class SupplementInvitationCode extends BaseReqObj {
    private static final long serialVersionUID = 60342141123320048L;
    /**
     * 被邀请人的id
     */
    @ApiModelProperty(value = "被邀请人的id", notes = "被邀请人的id", dataType = "Integer", required = true)
    @NotNull(message = "被邀请人id不能为空")
    private Integer userId;

    /**
     * 邀请码
     */
    @ApiModelProperty(value = "邀请码", notes = "邀请码", dataType = "String",required = true)
    @NotEmpty(message = "邀请码不能为空")
    private String inviteCode;

    // 被邀请客户信息
    /**
     * 被邀请客户信息-企业名称
     */
    @ApiModelProperty(value = "被邀请客户信息-企业名称,被邀请客户为企业时必填", notes = "被邀请客户信息-企业名称,被邀请客户为企业时必填", dataType = "String")
    private String oppositeName;

    /**
     * 被邀请客户信息-联系人
     */
    @ApiModelProperty(value = "被邀请客户信息-被邀请客户为企业时填联系人,为自然人时填用户名称", notes = "被邀请客户信息-被邀请客户为企业时填联系人,为自然人时填用户名称", dataType = "String", required = true)
    @NotEmpty(message = "被邀请客户信息-联系人或用户名称不能为空")
    private String oppositeContactPerson;

    /**
     * 被邀请客户信息-联系人手机号
     */
    @ApiModelProperty(value = "被邀请客户信息-联系人手机号", notes = "被邀请客户信息-联系人手机号", dataType = "String", required = true)
    @NotEmpty(message = "被邀请客户信息-联系人手机号不能为空")
    private String oppositeContactPhone;

    /**
     * 被邀请客户信息-联系人手机号
     */
    @ApiModelProperty(value = "被邀请客户信息-证件号,被邀请客户为自然人时必填", notes = "被邀请客户信息-证件号,被邀请客户为自然人时必填", dataType = "String")
    private String oppositePapersNo;
}
